package com.asiainfo_linkage.model;

import java.util.List;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.ManyMany;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

@Table("REM_TASK")
public class RemTask implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4961234376497783015L;
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大�?0")显示错误消息
	//columns START
	
	@Column	  // 表示该对象属性可以映射到数据库里作为一个字段
	@Id       // 表示该字段为一个自增长的Id
	private java.lang.Long task_id;
	
	@Column
	@Name    // 表示该字段可以用来标识此对象，或者是字符型主键，或者是唯一性约束
	private java.lang.String task_name;
	
	@Column
	private java.lang.String rem_content;
	
	@Column
	private java.util.Date rem_first_time;
	
	@Column
	private java.lang.String rem_type;
	
	
	@Column
	private java.lang.String rem_way;
	
	@Column
	private java.lang.String rem_status;
	
	@Column
	private java.util.Date rem_start_date;
	
	@Column
	private java.util.Date rem_end_date;
	
	@Column
	private java.lang.String remark;
	
	@Column
	private java.lang.String reserved1;
	
	@Column
	private java.lang.String reserved2;
	
	@ManyMany(target=AddMember.class, relation="REM_TASKMEMBER", from="task_id", to="member_id")
	private List<AddMember> members;
	
	public List<AddMember> getMembers() {
		return members;
	}

	public void setMembers(List<AddMember> members) {
		this.members = members;
	}

	/**
	 * 任务组员关系列表。
	 */
	private List<RemTaskMember> remTaskMembers;
	
	public List<RemTaskMember> getRemTaskMembers() {
		return remTaskMembers;
	}

	public void setRemTaskMembers(List<RemTaskMember> remTaskMembers) {
		this.remTaskMembers = remTaskMembers;
	}

	public java.lang.Long getTask_id() {
		return task_id;
	}

	public void setTask_id(java.lang.Long task_id) {
		this.task_id = task_id;
	}

	public java.lang.String getTask_name() {
		return task_name;
	}

	public void setTask_name(java.lang.String task_name) {
		this.task_name = task_name;
	}

	public java.lang.String getRem_content() {
		return rem_content;
	}

	public void setRem_content(java.lang.String rem_content) {
		this.rem_content = rem_content;
	}

	public java.util.Date getRem_first_time() {
		return rem_first_time;
	}

	public void setRem_first_time(java.util.Date rem_first_time) {
		this.rem_first_time = rem_first_time;
	}

	public java.lang.String getRem_type() {
		return rem_type;
	}

	public void setRem_type(java.lang.String rem_type) {
		this.rem_type = rem_type;
	}

	
	public java.lang.String getRem_way() {
		return rem_way;
	}

	public void setRem_way(java.lang.String rem_way) {
		this.rem_way = rem_way;
	}

	public java.lang.String getRem_status() {
		return rem_status;
	}

	public void setRem_status(java.lang.String rem_status) {
		this.rem_status = rem_status;
	}

	public java.util.Date getRem_start_date() {
		return rem_start_date;
	}

	public void setRem_start_date(java.util.Date rem_start_date) {
		this.rem_start_date = rem_start_date;
	}

	public java.util.Date getRem_end_date() {
		return rem_end_date;
	}

	public void setRem_end_date(java.util.Date rem_end_date) {
		this.rem_end_date = rem_end_date;
	}

	public java.lang.String getRemark() {
		return remark;
	}

	public void setRemark(java.lang.String remark) {
		this.remark = remark;
	}

	public java.lang.String getReserved1() {
		return reserved1;
	}

	public void setReserved1(java.lang.String reserved1) {
		this.reserved1 = reserved1;
	}

	public java.lang.String getReserved2() {
		return reserved2;
	}

	public void setReserved2(java.lang.String reserved2) {
		this.reserved2 = reserved2;
	}
}

